<?php 
namespace wsys;

class Data
{
    private static $manager = [];

    public static function get($type, $key = 'default')
    {
        return self::$manager[$type][$key];
    }

    public static function set($type, $key = 'default', $value = [])
    {
        if(!isset(self::$manager[$type])) {
            self::$manager[$type] = [];
        }
        if(!isset(self::$manager[$type][$key])) {
            self::$manager[$type][$key] = $value;
        }
        return $value;
    }

}